//
//  SEGPgcRecommendModel.h
//  FrameworkTest
//
//  Created by 刘山 on 2018/4/18.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SEGPlatform/SEGBasicBussinessEnums.h>

typedef NS_ENUM(NSUInteger, SEGEnumPgcWidgetType) {
    SEGEnumPgcWidgetType_PGC = 0, /*PGC*/
    SEGEnumPgcWidgetType_RefreshMiddle = 1, /*中间刷新*/
    SEGEnumPgcWidgetType_RefreshBottom = 2, /*底部刷新*/
    SEGEnumPgcWidgetType_AD = 3 /*广告*/
};

typedef NS_ENUM(NSUInteger, SEGEnumPGCListViewType) {
    SEGEnumPGCListViewType_NO = 5, /*PGC纯文本*/
    SEGEnumPGCListViewType_SingleSmallPic = 2, /*PGC单小图 默认*/
    SEGEnumPGCListViewType_SingleBigPic = 3, /*PGC单大图*/
    SEGEnumPGCListViewType_DoublePic = 4, /*一对图，使用 PGC单小图*/
    SEGEnumPGCListViewType_SmallTPic = 1 /*PGC小三图*/
};

@interface SEGCommentModel : NSObject
@property (nonatomic, copy) NSString *cid;
@property (nonatomic, copy) NSString *content;
@end
/*
 1 objType = 1 PGC
 1.1 pictorialStyle = 1 小三图
 1.2 pictorialStyle = 2 单小图
 1.3 pictorialStyle = 3 单大图
 1.4 pictorialStyle = 5 纯文本
 2 objType = 5 话题
 2.1 pgcType = 1 文字
 2.2 pgcType = 2 图片
 3 objType = 6 推广
 */
@interface SEGPgcRecommendModel : NSObject
@property (nonatomic, copy) NSString *title;//标题
@property (nonatomic, copy) NSString *objId;
@property (nonatomic, copy) NSArray *pic;
@property (nonatomic, copy) NSString *channelName;//频道名称
@property (nonatomic, copy) NSString *likeItTotal;//喜欢数
@property (nonatomic, copy) NSString *commentTotal;//评论数
@property (nonatomic, copy) NSString *pgcType;//1：文字话题 2：图文话题
@property (nonatomic, copy) NSString *pgcId;//主键
@property (nonatomic, assign) SEGEnumNameObjType objType;//数据类型
@property (nonatomic, copy) NSString *pictorialStyle;//板式：大一图、小三图....
@property (nonatomic, copy) NSString *linkMode;//连接方式:SEGEnumLinkModeType
@property (nonatomic, copy) NSString *linkModules;//连接方式 0网页链接 1图片链接 2内部链接
@property (nonatomic, copy) NSString *linkDetail;//详细业务的id
@property (nonatomic, copy) NSString* url;
@property (nonatomic, strong) NSArray<SEGCommentModel*> *comment;
@property (nonatomic, assign) NSUInteger adverIndex; ///< 每个广告的小标（业务逻辑）
/**
 控件类型:SEGEnumPgcWidgetType
 */
@property (nonatomic, copy) NSString* pgcWidgetType;

- (NSString *)firstImageURL;

@end

